import request from '@/utils/request'

// 查询VIEW列表
export function listWarein(query) {
    return request({
        url: '/mxerp/warein/list',
        method: 'get',
        params: query
    })
}

// 查询VIEW详细
export function getWarein(id) {
    return request({
        url: '/mxerp/warein/' + id,
        method: 'get'
    })
}

// 新增VIEW
export function addWarein(data) {
    return request({
        url: '/mxerp/warein',
        method: 'post',
        data: data
    })
}

// 修改VIEW
export function updateWarein(data) {
    return request({
        url: '/mxerp/warein',
        method: 'put',
        data: data
    })
}

// 删除VIEW
export function delWarein(id) {
    return request({
        url: '/mxerp/warein/' + id,
        method: 'delete'
    })
}
